package com.code.design.model.demo.factory.abstractfactorypattern.factory;

import com.code.design.model.demo.factory.abstractfactorypattern.mask.IMask;
import com.code.design.model.demo.factory.abstractfactorypattern.mask.LowEndMask;
import com.code.design.model.demo.factory.abstractfactorypattern.suit.IProtectiveSuit;
import com.code.design.model.demo.factory.abstractfactorypattern.suit.LowEndProtectiveSuit;

public class LowEndFactory implements IFactory {

    @Override
    public IMask createMask() {
        IMask mask = new LowEndMask();
        // .....
        //  LowEndMask的100行初始化代码
        return mask;
    }

    @Override
    public IProtectiveSuit createSuit() {
        IProtectiveSuit suit = new LowEndProtectiveSuit();
        // .....
        //  LowEndProtectiveSuit的100行初始化代码
        return suit;
    }
}
